<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>dingtalk</title>
</head>

<body>
    <h1>dingtalk</h1>
    <script src="https://g.alicdn.com/dingding/open-develop/1.6.9/dingtalk.js"></script>
    <script>
        dd.ready(function () {
            dd.runtime.permission.requestAuthCode({
                corpId: "ding52aa55bf054582db35c2f4657eb6378f",
                onSuccess: function (result) {
                    aletr(JSON.stringify(result))
                },
                onFail: function (err) {
                    alert(JSON.stringify(err))
                }
            });
        });

        dd.error(function (err) {
            alert('Error'+JSON.stringify(err))
        })
    </script>
</body>

</html>